<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta name="generator" content="Aspose.Words for .NET 17.1.0.0" />
    <title></title>
</head>

<body>
    <div>
        <div style="-aw-headerfooter-type:header-primary">
            <p style="margin-top:0pt; margin-bottom:0pt; text-align:center; widows:0; orphans:0; font-size:9pt"><span style="font-family:'Times New Roman'">&#xa0;</span></p>
        </div>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:center; line-height:150%; widows:0; orphans:0; font-size:22pt"><span style="font-family:'宋体'; font-weight:bold">实验报告(类图)</span></p>
        <center><a href="../download/3.zip"> 下载报告（zip）</a></center>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:center; line-height:120%; widows:0; orphans:0; font-size:20pt"><span style="font-family:'宋体'; font-weight:bold">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:center; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'; font-weight:bold">-------------------------------------------------------------</span></p>
        <center>
            <p style="margin-top:0pt; margin-bottom:0pt; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'; font-weight:bold">学生姓名:</span><span style="font-family:'宋体'">王若凡        学号:161810308</span></p>
            <p style="margin-top:0pt; margin-bottom:0pt; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'">       孙茜茹           161810101</span></p>
            <p style="margin-top:0pt; margin-bottom:0pt; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'">       方丹枫           161820304</span></p>
            <p style="margin-top:0pt; margin-bottom:0pt; line-height:150%; widows:0; orphans:0; font-size:15pt"><span style="font-family:'宋体'; font-size:14pt">       陈楚</span><span style="font-family:'宋体'; color:#333333; background-color:#ffffff">燚</span><span style="font-family:'宋体'; color:#333333; background-color:#ffffff">          </span>
                <span style="font-family:'宋体'; font-size:14pt; background-color:#ffffff">161830218</span>
            </p>
            <p style="margin-top:0pt; margin-bottom:0pt; line-height:150%; widows:0; orphans:0; font-size:15pt"><span style="font-family:'宋体'; background-color:#ffffff">      姜志杰          </span><span style="font-family:'宋体'; font-size:14pt; background-color:#ffffff">161830318</span></p>
            <p style="margin-top:0pt; margin-bottom:0pt; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">实验地点:</span><span style="font-family:'宋体'; background-color:#ffffff">计算机实验楼104</span></p>
            <p style="margin-top:0pt; margin-bottom:0pt; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">实验时间:</span><span style="font-family:'宋体'; background-color:#ffffff">2019/11/8</span></p>
            <p style="margin-top:0pt; margin-bottom:0pt; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'; color:#333333; background-color:#ffffff">-------------------------------------------------------------</span></p>
        </center>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold; color:#333333; background-color:#ffffff">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-indent:16pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">一.实验名称</span><span style="width:144.33pt; text-indent:0pt; display:inline-block; -aw-tabstop-align:left; -aw-tabstop-pos:231pt">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">  </span><span style="font-family:'宋体'; background-color:#ffffff"> </span><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">校医院门诊管理系统类图构建</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">二.实验目的</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">   </span><span style="font-family:'宋体'; background-color:#ffffff">(1)理解类的基本概念,类之间的关系,类的规约描述等等;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">   (2)掌握如何从需求分析中抽象出类,并构建类图的方法;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">   (3)掌握如何使用UML相关编辑工具绘制类图的过程与方法</span><span style="font-family:'宋体'; background-color:#ffffff">。</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'; font-weight:bold">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">三.实验内容与步骤</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">  </span><span style="font-family:'宋体'; background-color:#ffffff"> </span><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">实验内容：</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-indent:24.05pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">用作图工具结合已经画好的用况图完成校医院门诊管理系统类图的构建。</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-indent:24.05pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">    实验步骤：</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">1）定义类；</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">2）定义类的名称，重要属性，关键操作；</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">3）定义不同类之间的关系（尽可能寻找并使用各种不同类型的关系）；</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">4）针对核心类用规约描述其主要功能和与其相关联类的关系；</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">5）注意类图与之前画的用况图在逻辑上对应一致；</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">6）检查类图并写实验报告。</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">四.实验结果</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">模型截图：</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'; font-weight:bold">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:14pt"><img src="Presentation3.001.png" width="614" height="778" alt="" style="-aw-left-pos:0pt; -aw-rel-hpos:column; -aw-rel-vpos:paragraph; -aw-top-pos:0pt; -aw-wrap-type:inline" /></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">模型规约说明：</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">1.类</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">患者处方</span><span style="font-family:'宋体'; background-color:#ffffff">”</span></p>
        <p style="margin-top:0pt; margin-left:14.3pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">该类具有属性</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">药品清单</span><span style="font-family:'宋体'; background-color:#ffffff">”</span>
            <span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">药品数量</span><span style="font-family:'宋体'; background-color:#ffffff">”</span>
            <span style="font-family:'宋体'; background-color:#ffffff">，</span>
            <span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">项目名称</span><span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span>
            <span style="font-family:'宋体'; background-color:#ffffff">“</span>
            <span style="font-family:'宋体'; background-color:#ffffff">项目数量</span><span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，由于处方是根据病历开的，所以它与类</span><span style="font-family:'宋体'; background-color:#ffffff">“</span>
            <span style="font-family:'宋体'; background-color:#ffffff">电子病历</span><span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">具有依赖关系。在该类中要设立操作</span><span style="font-family:'宋体'; background-color:#ffffff">“</span>
            <span style="font-family:'宋体'; background-color:#ffffff">添加药品</span><span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span>
            <span style="font-family:'宋体'; background-color:#ffffff">删除药品</span><span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span>
            <span style="font-family:'宋体'; background-color:#ffffff">添加项目</span><span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span>
            <span style="font-family:'宋体'; background-color:#ffffff">删除项目</span><span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">供医师操作。它这些操作的前置条件是电子病历已经写好，然后才能决定患者处方。此外，患者需要根据处方到药房拿药，所以患者处方与药房具有关联关系。</span></p>
        <table cellspacing="0" cellpadding="0" style="border-collapse:collapse">
            <tr>
                <td style="width:432pt; border-style:solid; border-width:0.75pt; padding-right:5.03pt; padding-left:5.03pt; vertical-align:top">
                    <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">类名</span><span style="font-family:'宋体'; background-color:#ffffff">：</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">患者处方</span></p>
                    <p style="margin-top:0pt; margin-left:36pt; margin-bottom:0pt; text-indent:-36pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">简述</span><span style="font-family:'宋体'; background-color:#ffffff">：</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">该类具有属性</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">药品清单</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">药品数量</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">项目名称</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">项目数量</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，这些属性都是私有的。操作：</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">添加药品</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">删除药品</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">添加项目</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">删除项目</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                    </p>
                    <p style="margin-top:0pt; margin-left:84pt; margin-bottom:0pt; text-indent:-84pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">关系说明</span><span style="font-family:'宋体'; background-color:#ffffff">：</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">患者</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">处方与</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">药房</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">具有关联关系，与</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">电子病历</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">具有依赖关系</span></p>
                    <p style="margin-top:0pt; margin-left:84pt; margin-bottom:0pt; text-indent:-84pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">操作详述:</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">操作</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">添加药品</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">执行之后，相应的药品清单也会发生改变，同理，执行</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">添加/</span></p>
                    <p style="margin-top:0pt; margin-left:73.5pt; margin-bottom:0pt; text-indent:-21pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:10.5pt"><span style="font-family:'宋体'; background-color:#ffffff">删除项目</span><span style="font-family:'宋体'; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; background-color:#ffffff">之后，项目数量也会改变</span>
                    </p>
                    <p style="margin-top:0pt; margin-left:84pt; margin-bottom:0pt; text-indent:-84pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">约束条件：</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">电子病历已经写好</span></p>
                </td>
            </tr>
        </table>
        <p style="margin-top:0pt; margin-left:14.3pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">2.类</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">药品</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span>
        </p>
        <p style="margin-top:0pt; margin-left:14.3pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">该类具有属性</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">药品名称</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">价格</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">生产日期</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">保质期</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，它与类</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">电子病历</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">具有聚合关系，药品和项目都是电子病历的组成部分。</span></p>
        <p style="margin-top:0pt; margin-left:14.3pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">该类具有操作</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">查询药品名称</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">查询药品价格</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">查询药品生产日期和保质期</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">等操作 ，因为药品是要从药房里拿的，所以药品和药房有聚合关系，药房可以有添加药品，发放药品等操作。</span></p>
        <table cellspacing="0" cellpadding="0" style="border-collapse:collapse">
            <tr>
                <td style="width:432pt; border-style:solid; border-width:0.75pt; padding-right:5.03pt; padding-left:5.03pt; vertical-align:top">
                    <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">类名</span><span style="font-family:'宋体'; background-color:#ffffff">：</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">药品</span></p>
                    <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">简述</span><span style="font-family:'宋体'; background-color:#ffffff">：</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">该类具有属性</span>
                        <span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">药品名称</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">价格</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">生产日期</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">保质期</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span></p>
                    <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:10.5pt"><span style="font-family:'宋体'; background-color:#ffffff">       操作：</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">查询药品名称</span>
                        <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">查询药品价格</span>
                        <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">查询药品生产日期和保质期</span>
                        <span style="font-family:'宋体'; background-color:#ffffff">”</span>
                    </p>
                    <p style="margin-top:0pt; margin-left:60pt; margin-bottom:0pt; text-indent:-60pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">操作说明：</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">查询药品名称</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">用到属性</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">药品名称</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">查询药品价格</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">用到属性</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">价格</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">查询药品生产日期和保质期</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">用到属性</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">生产日期和保质期</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                    </p>
                    <p style="margin-top:0pt; margin-left:84pt; margin-bottom:0pt; text-indent:-84pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">关系说明</span><span style="font-family:'宋体'; background-color:#ffffff">：</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">药品</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">与</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">药房</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">具有聚合关系，</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">药品</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">与</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">电子病历</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">具有聚合关系</span>
                    </p>
                    <p style="margin-top:0pt; margin-left:84pt; margin-bottom:0pt; text-indent:-84pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">细节描述:</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">药品需要从药房取出，如果药房库存充足，直接取药；如果库存不足，药房还需向</span></p>
                    <p style="margin-top:0pt; margin-left:73.5pt; margin-bottom:0pt; text-indent:-21pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:10.5pt"><span style="font-family:'宋体'; background-color:#ffffff">药库发出提药申请，然后药库同意批复，再将药品发给药房。</span></p>
                </td>
            </tr>
        </table>
        <p style="margin-top:0pt; margin-left:14.3pt; margin-bottom:0pt; text-indent:24pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'">&#xa0;</span></p>
        <ol start="3" type="1" style="margin:0pt; padding-left:0pt">
            <li style="text-align:justify; line-height:150%; widows:0; orphans:0; font-family:'宋体'; font-size:12pt; list-style-position:inside"><span style="background-color:#ffffff">类</span><span style="background-color:#ffffff">“</span><span style="background-color:#ffffff">医师</span><span style="background-color:#ffffff">”</span></li>
        </ol>
        <p style="margin-top:0pt; margin-left:12pt; margin-bottom:0pt; text-indent:-12pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">       该类具有属性</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">姓名</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">科室</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">职位</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，它与类</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">门诊</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">具有关联关系，因为医师的实例需要接受门诊传来的挂号信息；</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">专家</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">类继承</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">医师</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">类，具有</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">医师</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">类相关的属性和操作，此外还有</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">专长领域</span>
            <span style="font-family:'宋体'; background-color:#ffffff">”“</span><span style="font-family:'宋体'; background-color:#ffffff">荣誉</span><span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">等区别于医师的属性。</span></p>
        <table cellspacing="0" cellpadding="0" style="border-collapse:collapse">
            <tr>
                <td style="width:432pt; border-style:solid; border-width:0.75pt; padding-right:5.03pt; padding-left:5.03pt; vertical-align:top">
                    <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">类名：</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">医师</span></p>
                    <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">简述：</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">该类具有属性</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">姓名</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">科室</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">，</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">职位</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span></p>
                    <p style="margin-top:0pt; margin-bottom:0pt; text-indent:42pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:10.5pt"><span style="font-family:'宋体'; background-color:#ffffff">操作：</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">接诊</span>
                        <span style="font-family:'宋体'; background-color:#ffffff">”</span><span style="font-family:'宋体'; background-color:#ffffff">，</span><span style="font-family:'宋体'; background-color:#ffffff">“</span><span style="font-family:'宋体'; background-color:#ffffff">书写电子病历</span>
                        <span style="font-family:'宋体'; background-color:#ffffff">”</span>
                    </p>
                    <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">关系说明：</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">专家</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">类继承</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">医师</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">类 ,专家类有</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">“</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">专长领域</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”“</span>
                        <span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">荣誉</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">”</span><span style="font-family:'宋体'; font-size:10.5pt; background-color:#ffffff">等区别于医师的属性。</span></p>
                </td>
            </tr>
        </table>
        <p style="margin-top:0pt; margin-left:12pt; margin-bottom:0pt; text-indent:-12pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:14pt"><span style="font-family:'宋体'; font-weight:bold">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">五．分析与总结</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-weight:bold; background-color:#ffffff">  </span><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff"> </span><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">在画类图时，我们首先从用况图中捕捉类，然后找出其中类的潜在关系，之后简单定义了相关属性和操作。但是在类图逐渐完善的过程中，我们渐渐发现有些类的名称和它与其他类的关系都有一些不合理之处</span>
            <span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">，因而做出了修改</span><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">（</span><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">例如</span>
            <span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">删除继承门诊类</span><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">病房门诊</span><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">，将电子病历和门诊之间的关联关系最后修改为依赖</span>
            <span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">）。</span><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">  </span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:12pt"><span style="font-family:'宋体'; background-color:#ffffff">   在写类的模型规约时发现对许多类的属性描述不太准确，容易有歧义，并且漏掉了一些重要属性。在修改的过程中又不断思索类与类之间的关系。</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:16pt"><span style="font-family:'宋体'; font-size:12pt; background-color:#ffffff">    通过在类图中添加接口的过程中，我们对接口的理解也更加深入，面向对象设计中我们追求的原则之一就是高内聚，低耦合，但是类与类之间总是会避免不了有着千丝万缕的关系，而使用接口就可以将一个类对另一个类的依赖性降到最低。  </span>
            <span style="font-family:'宋体'; background-color:#ffffff">    </span>
        </p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:9pt"><span style="font-family:'宋体'">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:9pt"><span style="font-family:'宋体'">&#xa0;</span></p>
        <p style="margin-top:0pt; margin-bottom:0pt; text-align:justify; line-height:150%; widows:0; orphans:0; font-size:9pt"><span style="font-family:'宋体'">&#xa0;</span></p>
    </div>
</body>

</html>